package com.shiguiwu.springmybatis.spring.property;

import com.shiguiwu.springmybatis.spring.property.refresh.RefreshScope;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @description: 邮件配置
 * @author: stone
 * @date: Created by 2021/4/3 20:36
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.spring.property
 */
//@Component
@Data
//@RefreshScope
//@ConfigurationProperties(prefix = "mail")
public class MailConfig {

    @Value("${mail.username}")
    private String username;

    @Value("${mail.title}")
    private String title;


    @Value("${mail.toUsername}")
    private String toUsername;

    @Value("${mail.host}")
    private String host;



}
